<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */

$cakeDescription = __d('MUNEYHUNCH.COM', 'CakePHP: the rapid development php framework');
?>
<!DOCTYPE html>
<html>
<head>
	
	<?php echo $this->Html->charset(); ?> 
	
	<title>
		<?php echo $cakeDescription ?>:
		<?php echo $title_for_layout; ?>
	</title>
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
	<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>

	</script>
	<?php
		echo $this->Html->meta('icon');

		//echo $this->Html->css('cake.generic');
		echo $this->Html->css('bootstrap');
		echo $this->Html->css('bootstrap.min');
		echo $this->Html->css('metro-bootstrap');
		echo $this->Html->script('bootstrap');
		echo $this->Html->script('bootstrap.min');
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
		
	?>

</head>
<body>
	<div id="header" >
		<div class="navbar navbar-inverse " >
		  <div class="navbar-inner">
		    <!-- <a class="brand" href="/">MoneyHunch.com | Administración</a> -->
		    <?php echo $this->Html->link('MoneyHunch.com | Administración', array('controller'=>'home', 'action'=>'index'),array('class'=>'brand'));?>
		    <ul class="nav"  data-toggle="collapse" data-target=".nav-collapse">
				<li><?php echo $this->Html->link('Usuarios', array('controller'=>'users', 'action'=>'sisusers'));?></li>
				<!-- <li><?php echo $this->Html->link('Usuarios', array('controller'=>'users', 'action'=>'index'));?></li> -->
				<li><?php echo $this->Html->link('Deportes', array('controller'=>'sports', 'action'=>'index'));?></li>
				<li><?php echo $this->Html->link('Acciones', array('controller'=>'stocks', 'action'=>'index'));?></li>
				
				<li class="dropdown">
			        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Administración de Eventos<b class="caret"></b></a>
			        <ul class="dropdown-menu">
			          <li><?php echo $this->Html->link('Tipos', array('controller'=>'events', 'action'=>'eventstypeList'));?></li>
				  <li><?php echo $this->Html->link('Eventos', array('controller'=>'events', 'action'=>'event_list'));?></li>
			        </ul>
		        </li>
		        <li class="dropdown">
			        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Mesas<b class="caret"></b></a>
			        <ul class="dropdown-menu">
			          <li><?php echo $this->Html->link('Mesas', array('controller'=>'tables', 'action'=>'index'));?></li>
				  <li><?php echo $this->Html->link('Tipos de Mesas', array('controller'=>'tables', 'action'=>'table_types'));?></li>
			        </ul>
		        </li>
		        <li><?php echo $this->Html->link('Newsletters', array('controller'=>'home', 'action'=>'newsletters'));?></li>


		        

		    </ul>
			<?php if($this->Session->read('Auth.User')):?>
				<ul class="nav navbar-nav navbar-right">			      
			      <li class="dropdown">
			      	<?php /*echo $this->Html->link('Usuarios Sistema', array('controller'=>'users', 'action'=>'sisprofile',1));*/?>
			         <a href="#" class="dropdown-toggle" data-toggle="dropdown">Administrador<b class="caret"></b></a>
			        <ul class="dropdown-menu">
			          <li><a href="#">Profile</a></li>
			          <li><a href="#">Logout</a></li>
			        </ul>
			      </li>
			    </ul>
				<!--			
				<div class="btn-group pull-right">
			  <button class="btn btn-inverse dropdown-toggle ">Action</button>
			  <button class="btn dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			  </button>
			  <ul class="dropdown-menu">
			     <li> <?php echo $this->Html->link('Usuarios Sistema', array('controller'=>'users', 'action'=>'sisprofile',1));?></li>
			      <li><?php echo $this->Html->link('Logout', array('controller'=>'users', 'action'=>'sislogout'));?></li>
			  </ul>
			</div>-->
			<?php endif;?>
			
			   
		  </div>
		</div>
	</div>
	<div class="container">
		
		

			<?php echo $this->Session->flash(); ?>

			<?php echo $this->fetch('content'); ?>
		
		<br>
		
	</div>
	<div id="footer" class="span12">
			<?php echo $this->Html->link(
					$this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')),
					'http://www.cakephp.org/',
					array('target' => '_blank', 'escape' => false)
				);
			?>
	</div>
	<br>
	<!--<div class='span12'>
		<?php echo $this->element('sql_dump'); ?>
	</div>-->
</body>
<script type="text/javascript">
		$('.dropdown-toggle').dropdown();
	</script>
</html>
